package cn.itcast.user;

import cn.itcast.feign.config.PatternProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
//import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@EnableFeignClients(basePackageClasses = cn.itcast.feign.config.PatternProperties.class)
@MapperScan("cn.itcast.user.mapper")
//@EnableEurekaClient // 客户端可省略
@ConfigurationPropertiesScan
@SpringBootApplication
public class UserApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }
    @Bean
    public PatternProperties patternProperties(){
        return new PatternProperties();
    }
}
